<template>
	<view>
		<u-button @click="pay">付款</u-button>
	</view>
</template>

<script>
	export default{
		data(){
			return {}
		},
		methods:{
				pay(){
					uni.requestPayment({
						provider:'wxpay',
						appid:'wx6fef20944dfd7bb1',
						timeStamp:String(Date.now()),
						nonceStr:'A1B2C3D4E5',
						package:'prepay_id=wxdddddddddd',
						stringType:"MD5",
						paySign:'wx6fef20944dfd7bb1',
						signType:"",
						total_fee:'10',
						service:'3/4',
						_debug:1,
						success:function(res){
							console.log('success'+JSON.stringify(res));
						},
						fail:function(res){
							console.log('success'+JSON.stringify(res));
						},
						complete:function(res){
							console.log('success'+JSON.stringify(res));
						}
					})
				}
			},
	}
</script>

<style>
</style>